package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Mapper
public interface SetmealDishMapper {

    //在套餐菜品中添加菜品数据
    void insertDish(List<SetmealDish> setmealDishes);

    /**
     * 根据提供的套餐id 删除关联菜品
     * @param setmealID
     */
    @Delete("delete from setmeal_dish where setmeal_id=#{setmealID}")
    void DeleteSetmealDish(Long setmealID);


}
